package com.iweb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Part;
import java.io.IOException;
import java.util.Collection;

/**
 * 南京艾瑞
 * 作者: jack
 * 时间: 2020-06-28 21:13
 * 描述: UploadController
 */
@Controller
public class UploadController {

    @RequestMapping(value = "upload", method = RequestMethod.POST)
    public String upload(MultipartFile file) {
        System.out.println(file.getOriginalFilename());
        return "success";
    }

}
